import java.util.Stack;

public class Test {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(12);
        myStack.push(13);
        myStack.push(14);
        myStack.push(15);
        System.out.println(myStack.pop());
        System.out.println(myStack.peek());

    }
    public static void main1(String[] args) {
        Stack<Integer> stack = new Stack<>();
        stack.push(12);
        stack.push(13);
        stack.push(14);
        stack.push(15);
        //将元素弹出
        int x = stack.pop();
        System.out.println(x);
        //只获取栈顶元素
        int x1 = stack.peek();
        System.out.println(x1);
        System.out.println(stack.empty());

    }


}
